package cn.iune.erp.inventory;


import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface IFileGroupDao {
	
	public void insert(FileGroup obj);
	
	public void delete(String fID);

	public FileGroup update(FileGroup obj) ;

	public List<FileGroup> getAll();
	
	public FileGroup getByID(String fID);
	
	public int getRootCount();

	public List<FileGroup> getRoots(String enterpriseNo);

	public int getChildCount(String fParent);

	public List<FileGroup> getChilds(String fParent);


	public List<FileGroup> getChildren(String fParent);

	List<FileGroup> getList(String enterpriseNo, Integer offset, Integer limit);

	JSONObject query(JSONObject data) throws SQLException;

	JSONObject querySimple(JSONObject data) throws SQLException;

	JSONObject create(JSONObject data);

}
